package com.hanma.app.beans;

import android.os.Parcel;
import android.os.Parcelable;

public class Persion implements Parcelable {
    String mName;

    public Persion(String n) {
        this.mName = n;
    }

    protected Persion(Parcel in) {
        this(in.readString());
    }

    public void setName(String n) {
        this.mName = n;
    }

    public String getName(){
        return mName;
    }
    public static final Creator<Persion> CREATOR = new Creator<Persion>() {
        @Override
        public Persion createFromParcel(Parcel in) {
            return new Persion(in);
        }

        @Override
        public Persion[] newArray(int size) {
            return new Persion[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.mName);
    }

    @Override
    public String toString() {
        return this.mName;
    }
}
